import {
  http,
  assignData
} from '../utils/request'


/**
 * 获取充值列表
 * @returns
 */
export const getApiPayTemplate = (eid, video_id, sort) => {
  return http.get(
    `/PayTemplate/getPayTemplate`,
    assignData({
      eid,
      video_id,
      sort
    })
  )
}

/**
 * 获取充值必要参数
 * @returns
 */
export const getApiPayParams = (params) => {
  return http.get(process.env.VUE_APP_BASE_URL + `pay.mingchengwl.top/RechargeDy/dyPay?`, assignData(params))
}

/**小程序启动页回传信息接收 */
export const saveOcUserRequestData = (data) => {
  return http.get(
    `UserIn/userClue`,
    assignData({
      ...data,
    })
  )
}

/**
 * 支付loding
 * @param {*} eid 
 * @param {*订单id} order_id 
 * @returns 
 */
export const getOrderStatus = (eid, order_id) => {
  return http.get(process.env.VUE_APP_BASE_URL + `pay.mingchengwl.top/Recharge/orderStatus?order_id=${order_id}&eid=${eid}`)
}